package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.IUser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 司军强
 * @version 1.0.0
 * @date 2019/7/14 :23:07
 * @description
 **/

@RestController//注解实例化
@RequestMapping("/hello") //映射路径
public class ControllerService {

    @Reference//注入dubbo的注解
    private IUser iUser;

    @RequestMapping("/demo")
    public String get(){
        //return "abc";
        return  iUser.sayHello();

    }


}
